#ifndef _SVPWM_H
#define _SVPWM_H
#include "FocDataBase.h"
#define SVPWM_COMPUTATIONAL_SECTOR    0
#define SVPWM_COMPUTATIONAL_HARMONIC  1
#define SVPWM_COMPUTATIONAL_METHOD    SVPWM_COMPUTATIONAL_HARMONIC
typedef struct
{
		float vd,vq;
		float ta,tb,tc;
		float sector;
		float vAlpha,vBeta;
		float tx,ty;
		float tAlpha,tBeta;
		float vBus;
		float sin_cos[2];
}ComponentsSvpwm_t;
void SvpwmStep(ComponentsSvpwm_t *pHandle);
void SvpwmTest(void);
#endif
